package com.example.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/goods")
@RestController
public class GoodsController {

    @PreAuthorize("hasAnyAuthority('select')")
    @GetMapping("/select")
    public String getGoods() {
        return "这是商品详情信息: iphone15....";
    }
}

